project( GraphViz )
cmake_minimum_required( VERSION 2.8 )

find_package( GLUT )
find_package( OpenGL REQUIRED )

set( GraphViz_HEADERS
    Constants.h
    Vector3.h
    GLWindow.h
    GLObject.h
    Graph.h
    Node.h
    Edge.h
)

set( GraphViz_SOURCES
    GLWindow.cpp
)

set( GraphViz_INCLUDE_DIRS
#    ${CMAKE_CURRENT_SOURCE_DIR}/..
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${OPENGL_INCLUDE_DIR}
    ${GLUT_INCLUDE_DIR}
)

set( GraphViz_LIBRARIES
    ${OPENGL_LIBRARIES}
    ${GLUT_LIBRARIES}
)

include_directories( ${GraphViz_INCLUDE_DIRS} )
add_library( GraphViz ${GraphViz_SOURCES} ${GraphViz_HEADERS} )
target_link_libraries( GraphViz ${GraphViz_LIBRARIES} )
export_library( GraphViz )

